feat: structure 3MF exports with components/assemblies for better slicing#13
Merged
LittleSound merged 3 commits intoLittleSound:mainfrom Jan 21, 2026
Merged
Conversation
…cing Refactors the export logic to map `THREE.Group` objects to 3MF component assemblies. - Previously, exports were often treated as a single object or split strictly by mesh, making it difficult to manipulate complex multi-mesh items as single units in a slicer. - Each top-level group is now exported as a distinct build item, and its children are grouped logically using 3MF components. - This allows slicers to recognize complex assemblies as single manipulatable objects on the plate while preserving their distinct geometry. - This is a non-breaking change that significantly improves compatibility with slicer workflows. - Includes general code quality improvements and internal refactoring.
✅ Deploy Preview for bekuto3d ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
- Replaces coordinate baking with native 3MF component transforms, preserving original geometry and improving modularity. - Implements recursive transform accumulation to correctly position sub-components in deep hierarchies. - Updates export logic to treat direct children of THREE.Scene as separate top-level objects while preserving THREE.Group objects as unified assemblies. - Fixes layout issues where nested groups were previously stacked at the origin. - Adds initial test suite for mesh, group, and scene export combinations.
Contributor
Author
|
Newly added tests passing: |
Owner
|
Thank you for this! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refactors the export logic to map
THREE.Groupobjects to 3MF component assemblies.